package com.md.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.md.model.page.PageRequest;
import com.md.value.ModuleTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author 刘骄阳
 * 2024-07-14 22:13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("查询模块请求实体")
public class QueryModuleRequest extends PageRequest {
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @ApiModelProperty("主键id")
  private Long id;
  /**
   * 租户id
   */
  @ApiModelProperty("租户id")
  private Long tenantId;
  /**
   * 应用id
   */
  @ApiModelProperty("应用id")
  private Long brandId;
  /**
   * 模块名
   */
  @ApiModelProperty("模块名")
  private String modelName;
  /**
   * 模块英文名
   */
  @ApiModelProperty("模块英文名")
  private String modelEnName;
  /**
   * 模块类型(0: 系统; 1: 用户定义)
   */
  @ApiModelProperty("模块类型(0: 公有; 1: 私有)")
  private ModuleTypeEnum moduleType;

  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @ApiModelProperty("主键id列表")
  private List<Long> idList;
}
